package com.lhnstart.learn.bases.polyarr;

/**
 * 学术类
 *
 * @author lhn
 * @date 2023/06/07 16:22
 * @since 1.0.0
 **/
public class Student extends Person{

    private double score;

    public Student(String name, int age, double score) {
        super(name, age);
        this.score = score;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    @Override
    public String say() {
        return super.say() + " score" + score;
    }
}